package com.cy.java.oop;

public class MailServiceTests {

	public static void main(String[] args) {
		//doTest01();
		doTest02();
	}
	private static void doTest02() {
		MailService ms=new TransactionMailService(new DefaultMailService());
		ms.sendMsg("hello cgb2005");
	}

	private static void doTest01() {
		MailService ms=new LogMailService();
		ms.sendMsg("hello cgb2005");
	}
}
